aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/groups/[groupId]/save-recent-group.tsx
blob: 084681aa89d60dacd711ad21b64913cdba6b8e1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use client'
import {
  RecentGroup,
  saveRecentGroup,
} from '@/app/groups/recent-groups-helpers'
import { useEffect } from 'react'

type Props = {
  group: RecentGroup
}

export function SaveGroupLocally({ group }: Props) {
  useEffect(() => {
    saveRecentGroup(group)
  }, [group])

  return null
}